{* Smarty *}
{*debug*}
<div>{$catalog_hs}</div>
<br />
<div class="title">{$title}</div><br/>
<form method="POST" action="{$url}" enctype="multipart/form-data" >
<input name="menuid" value="{$id}" type="hidden"/>
<input name="parent_id" value="{$item.parent_id}" type="hidden"/>
<input name="action" value="{$action}" type="hidden"/>
<table>
{if isne($item.menuid) }<tr class="light"><td>Menu Id</td><td>{$item.menuid}</td></tr>{/if}
	
	<tr class="light">
		<td>Title</td>
		<td><input name="title" value="{$item.title}" class="input_text" type="text"/></td>
	</tr>

	<tr class="light" valign="top">
		<td>Image On</td>
		<td>
		<input type="file" name="img_on" value="{$item.img_on}" class="input_text"/><br/>
		{if isne($item.img_on) }<img src="/inventory/{$item.img_on}" border="0"/>{else}No Image{/if}
		</td>
	</tr>
	<tr class="dark">
		<td valign="top">Image Off</td>
		<td>
		<input type="file" name="img_off" value="{$item.img_off}" class="input_text"/><br/>
				{if isne($item.img_off) }<img src="/inventory/{$item.img_off}" border="0"/>{else}No Image{/if}
		</td>
	</tr>
	<tr class="light">
		<td>Is Active</td>
		<td><input name="is_active" {if $item.is_active eq 'Y'}checked{/if} type="checkbox"/>
		</td>
	</tr>
	<tr class="dark">
		<td>URL</td>
		<td>
			<select name="url[]">
				<option value="-1" selected>-- Choose catalog -- </option>
			{foreach from=$res_action item=catalog}
				<option value="{$catalog.catalog_id}">{$catalog.title}</option>
			{/foreach}
			</select><br/><br/>
			<input name="url[]" value="{$item.url}" class="input_text" type="text"/>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
		<input type="submit" value=" Submit " class="button" />
	&nbsp;<input type="button" name="cancel" value="Cancel" class="button" onclick="location = '{$cancel_url}';">
		</td>
	</tr>
	
</table>
</form>
